Pasting from Window's clipboard

Is there a DXL command to paste the Window's clipboard to a string?  I can't find it if there is one.  The command:

o."Object Text" = richClip

will paste the Window's clipboard to the current Object's Object Text.  How can I paste the Window's clipboard to a string?

string sTemp = richClip   // does not work


JJB - Wed Aug 28 14:21:52 EDT 2013

Re: Pasting from Window's clipboard
llandale - Wed Aug 28 14:48:09 EDT 2013

I think:

s = stringOf(richClip)

Re: Pasting from Window's clipboard
JJB - Wed Aug 28 15:10:30 EDT 2013

llandale - Wed Aug 28 14:48:09 EDT 2013

I think:

s = stringOf(richClip)

Thanks - that works.

string s1 = stringOf(richClip)
print s1 // prints the rich text of the window's clipboard

string s2= ""
RichText rtS
for rtS in s1 do s2 = s2 rtS.text "\n"
print s2 // prints just the text of the window's clipboard

Re: Pasting from Window's clipboard
Naveen_Auto - Wed May 09 10:24:21 EDT 2018

Hi All,

if we what to paste ole object from windows clipboard to doors .is their any method for ole objects .in about stringof(richclip) will convert ole object into string 

 

help me with that

 

thanks & regards,

naveen